package com.realdolmen.whiteyellowcross.model;

import java.util.Date;

public class WaitWorkShift {
	private String id;
	

	private String name;
	private Date from;
	private Date to;
	private Long hours;

	public WaitWorkShift(String name, Date from, Date to, Long hours) {
		super();
		this.name = name;
		this.from = from;
		this.to = to;
		this.hours = hours;
	}
	
	public WaitWorkShift() {
		super();
		this.name = name;
		this.from = from;
		this.to = to;
		this.hours = hours;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getFrom() {
		return from;
	}

	public void setFrom(Date from) {
		this.from = from;
	}

	public Date getTo() {
		return to;
	}

	public void setTo(Date to) {
		this.to = to;
	}

	public Long getHours() {
		return hours;
	}

	public void setHours(Long hours) {
		this.hours = hours;
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Override
	public String toString() {
		StringBuilder result = new StringBuilder();
		String NEW_LINE = System.getProperty("line.separator");
		result.append(this.getClass().getName() + " Object {" + NEW_LINE);
		result.append(" Name: " + name + NEW_LINE);
		result.append(" From: " + from + NEW_LINE);
		result.append(" To: " + to + NEW_LINE);
		result.append("}");
		return result.toString();
	}

}
